package com.ark.common.domain.entity.game;


import com.ark.common.domain.BaseEntity;
import com.ark.common.domain.game.config.GameConfigInfo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author MR.Liu
 * @version 1.0
 * @description:  游戏配置模板
 * @date  2024/12/27 09:14
 */


@Data
@TableName("game_config_template")
@EqualsAndHashCode(callSuper = true)
public class GameConfigTemplate extends BaseEntity {

    /**
     * 配置id，自增
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 用户ID
     */
    private Integer userId;
    /**
     * 配置模板名称
     */
    private String templateName;
    /**
     * 打斗日
     */
    @TableField(value = "weekdays",typeHandler = JacksonTypeHandler.class)
    private List<GameConfigInfo> weekdays;
    /**
     * 游戏打斗配置列表
     */
    @TableField(value = "game_config",typeHandler = JacksonTypeHandler.class)
    private List<GameConfigInfo> gameConfig;
}
